using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Collections;

/// <summary>
/// Summary description for LuanVan_BUS
/// </summary>
public class LuanVan_BUS
{
    LuanVan_DAO l = new LuanVan_DAO();
	public LuanVan_BUS()
	{
		//
		// TODO: Add constructor logic here
		//
	}
    // Nhan mot Table cua  LuanVan

    public ArrayList LayDSLuanVan()
    {
        return l.LayMang_Luanvan();
    }
    public void update(int malv, float dtb, string xeploai)
    {
        l.update(malv, dtb, xeploai);
    }
    public DataTable DSLuanVan()
    {
        return l.DSLuanVan();
    }
    public DataTable LuanVan_Select()
    {
        return l.LuanVan_Select();
    }
    public DataTable LuanVan_Select(String MaGV)
    {
        return l.LuanVan_Select(MaGV);
    }
    public DataTable LuanVan_Select(String MaGV, int maDot)
    {
        return l.LuanVan_Select(MaGV, maDot);
    }
    // Lay chi tiet cua bang LuanVan
    public LuanVan_DTO Get_LuanVan_DTO(int MaLuanVan)
    {
        return l.Get_LuanVan_DTO(MaLuanVan);
    }

    // Update bang LuanVan
    public bool LuanVan_Sua(int MaLuanVan, String TenLuanVan, String MaGiaoVienPB, int NamThucHien, float DTB, String XepLoai, int MaDangKy)
    {
        return l.LuanVan_Sua(MaLuanVan, TenLuanVan, MaGiaoVienPB, NamThucHien, DTB, XepLoai, MaDangKy);

       
        
    }
    // tao ra mot dong trong bang LuanVan
    public bool LuanVan_Them(int MaLuanVan, String TenLuanVan, String MaGiaoVienPB, int NamThucHien, float DTB, String XepLoai, int MaDangKy)
    {
        return l.LuanVan_Them(MaLuanVan, TenLuanVan, MaGiaoVienPB, NamThucHien, DTB, XepLoai, MaDangKy);
        
    }

    // Delete LuanVan
    public bool LuanVan_Xoa(int MaLuanVan)
    {
        return l.LuanVan_Xoa(MaLuanVan);
    }









}
